package org.pearl.produce.api.service;

import java.util.concurrent.CompletableFuture;

/**
 * Created by TD on 2021/9/6
 */
public interface DemoService {

    String sayName(String name);


    String sayHello(String name);

    default CompletableFuture<String> sayHelloAsync(String name) {
        return CompletableFuture.completedFuture(sayHello(name));
    }
}